package com.yinshu.teleshield.domain.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yinshu.teleshield.tkbase.base.entity.TKEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;


/**
 * 用户表(User)表实体类
 * @author yangjunxiong   2024-11-11 11:22:22
 */
@Data
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Schema(description="UserEntity 用户表对象")
@TableName("t_user")
public class UserEntity  extends TKEntity<Long> implements Serializable {
    private static final long serialVersionUID = -75147464395211480L;
    
       //    @ExcelIgnore
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @Schema(description = "用户昵称")
    @TableField(value = "nickname")
    private String nickname;
    @Schema(description = "用户名称")
    @TableField(value = "username")
    private String username;
    @Schema(description = "手机号")
    @TableField(value = "phone")
    private String phone;
    @Schema(description = "密码")
    @TableField(value = "password")
    private String password;
    @Schema(description = "盐")
    @TableField(value = "salt")
    private String salt;
    @Schema(description = "状态 1可用 2禁用")
    @TableField(value = "status")
    private String status;
    @Schema(description = "描述")
    @TableField(value = "descr")
    private String descr;

    //@Override
    //public VerifyMessage extraVerify(boolean skipNull) {
    //    return VerifyMessage.SUCCESS;
    //}

    /** ---> 业务字段开始 */
    //@TableField(exist = false)
}
